﻿using System;
using System.Data;
using System.Data.Common;
using Hxj.Data;
using Hxj.Data.Common;

namespace RecruitStudents.Utility.Model.NMT
{
    [Serializable]
    public class NMT_TB_Dic_RecruitStudentsInfo_ZY_Mapping : Entity
    {
    public NMT_TB_Dic_RecruitStudentsInfo_ZY_Mapping():base("NMT_TB_Dic_RecruitStudentsInfo_ZY_Mapping") { }

    #region Model
    private string _ProvinceNO;
    private string _ZYDH;
    private string _ZYMC;
    /// <summary>
    /// 
    /// </summary>
    public string ProvinceNO
    {
        get { return _ProvinceNO; }
        set
        {
            this.OnPropertyValueChange(_.ProvinceNO, _ProvinceNO, value);
            this._ProvinceNO = value;
        }
    }
    /// <summary>
    /// 
    /// </summary>
    public string ZYDH
    {
        get { return _ZYDH; }
        set
        {
            this.OnPropertyValueChange(_.ZYDH, _ZYDH, value);
            this._ZYDH = value;
        }
    }
    /// <summary>
    /// 
    /// </summary>
    public string ZYMC
    {
        get { return _ZYMC; }
        set
        {
            this.OnPropertyValueChange(_.ZYMC, _ZYMC, value);
            this._ZYMC = value;
        }
    }
    #endregion

    #region Method
    /// <summary>
    /// 获取列信息
    /// </summary>
    public override Field[] GetFields()
    {
        return new Field[] {
                _.ProvinceNO,
                _.ZYDH,
                _.ZYMC};
    }
    /// <summary>
    /// 获取值信息
    /// </summary>
    public override object[] GetValues()
    {
        return new object[] {
                this._ProvinceNO,
                this._ZYDH,
                this._ZYMC};
    }
    /// <summary>
    /// 给当前实体赋值
    /// </summary>
    public override void SetPropertyValues(IDataReader reader)
    {
        this._ProvinceNO = DataUtils.ConvertValue<string>(reader["ProvinceNO"]);
        this._ZYDH = DataUtils.ConvertValue<string>(reader["ZYDH"]);
        this._ZYMC = DataUtils.ConvertValue<string>(reader["ZYMC"]);
    }
    /// <summary>
    /// 给当前实体赋值
    /// </summary>
    public override void SetPropertyValues(DataRow row)
    {
        this._ProvinceNO = DataUtils.ConvertValue<string>(row["ProvinceNO"]);
        this._ZYDH = DataUtils.ConvertValue<string>(row["ZYDH"]);
        this._ZYMC = DataUtils.ConvertValue<string>(row["ZYMC"]);
    }
    #endregion

    #region _Field
    /// <summary>
    /// 字段信息
    /// </summary>
    public class _
    {
        /// <summary>
        /// * 
        /// </summary>
        public readonly static Field All = new Field("*", "NMT_TB_Dic_RecruitStudentsInfo_ZY_Mapping");
        /// <summary>
        /// 
        /// </summary>
        public readonly static Field ProvinceNO = new Field("ProvinceNO", "NMT_TB_Dic_RecruitStudentsInfo_ZY_Mapping", "ProvinceNO");
        /// <summary>
        /// 
        /// </summary>
        public readonly static Field ZYDH = new Field("ZYDH", "NMT_TB_Dic_RecruitStudentsInfo_ZY_Mapping", "ZYDH");
        /// <summary>
        /// 
        /// </summary>
        public readonly static Field ZYMC = new Field("ZYMC", "NMT_TB_Dic_RecruitStudentsInfo_ZY_Mapping", "ZYMC");
    }
    #endregion


}
}


